<template>
    <bread :aaa="data"></bread>

    <router-view></router-view>
</template>
<script setup>
import { onMounted,getCurrentInstance,ref } from 'vue';
  import bread from './components/bread/index.vue'
  // $bus.on('ccc',(input)=>{
  //   console.log(input);
  // })
  let data = ref([])
  onMounted(()=>{
    let instance=getCurrentInstance()
    let $bus = instance.appContext.config.globalProperties.$bus
    $bus.$on('ccc',input =>{
      data.value=input
      console.log(input);
    })
  })
</script>
